import request from '@/utils/request'

// 查询小号绑定记录列表
export function listMiddleRelation(query) {
  return request({
    url: '/middleRelation/middleRelation/list',
    method: 'get',
    params: query
  })
}

// 查询小号绑定记录详细
export function getMiddleRelation(id) {
  return request({
    url: '/middleRelation/middleRelation/' + id,
    method: 'get'
  })
}

// 新增小号绑定记录
export function addMiddleRelation(data) {
  return request({
    url: '/middleRelation/middleRelation',
    method: 'post',
    data: data
  })
}

// 修改小号绑定记录
export function updateMiddleRelation(data) {
  return request({
    url: '/middleRelation/middleRelation',
    method: 'put',
    data: data
  })
}

// 删除小号绑定记录
export function delMiddleRelation(id) {
  return request({
    url: '/middleRelation/middleRelation/' + id,
    method: 'delete'
  })
}
